/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.fee.entity.PayInvoice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 应收发票MAPPER接口
 * @author weisong
 * @version 2017-09-19
 */
@MyBatisMapper
public interface PayInvoiceMapper extends BaseMapper<PayInvoice> {
    // 更新核销金额和状态
    public int updateVcaMoneyAndStatusById(@Param("vcaMoney") Double vcaMoney, @Param("status") Integer status,
                                           @Param("id") String id);

    // 查询最大的单号和日期【用来生成单号】
    public PayInvoice findInvoiceNoAndInvoiceDate();

    //根据发票子表查询发票主表
    public List<PayInvoice> findPayInvoiceByInvoiceDetail(String id );
}